home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / win / ch31 / 31fig05.wrl < prev    next >
Text File  |  1996-09-23  |  679b  |  34 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. EXTERNPROTO DarkOak [
  6.     exposedField SFNode textureTransform
  7. ] "applib.wrl#DarkOak"
  8.  
  9. EXTERNPROTO LightOak [
  10.     exposedField SFNode textureTransform
  11. ] "applib.wrl#LightOak"
  12.  
  13. Group {
  14.     children [
  15.         Transform { translation -1.5 0.0 0.0
  16.             children Shape {
  17.                 appearance DarkOak { }
  18.                 geometry Box { }
  19.             }
  20.         },
  21.         Transform { translation 1.5 0.0 0.0
  22.             children Shape {
  23.                 appearance LightOak {
  24.                     textureTransform TextureTransform {
  25.                         translation 0.5 0.0
  26.                         scale 2.0 1.0
  27.                     }
  28.                 }
  29.                 geometry Box { }
  30.             }
  31.         }
  32.     ]
  33. }
  34.